package com.bootdo.mall.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import com.bootdo.common.annotation.NotColumn;
import com.bootdo.common.fansheutils.FansheUtils;
import com.bootdo.common.fansheutils.JibenLei;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.haojiangbo.annotation.HapiFeild;


/**
 * 
 * 
 * @author lujingqian
 * @email 2100272728@qq.com
 * @date 2019-11-12 14:57:08
 */
 @JsonInclude(JsonInclude.Include.NON_NULL)
public class MallIndexCategoryJoin extends JibenLei {
	@NotColumn
	private static final long serialVersionUID = 1L;
	
	
	//
	 @NotColumn 	@HapiFeild("")
	private Long id;
	
	//首页分类ID
		@HapiFeild("首页分类ID")
	private Long indexCategoryId;
	
	//类型
		@HapiFeild("类型")
	private Integer type;
	
	//关联ID
		@HapiFeild("关联ID")
	private Long refId;
	
	//创建时间
		@HapiFeild("创建时间")
	private Date createTime;
	
	//排序
		@HapiFeild("排序")
	private Integer px;


		@NotColumn
	private String name;

		@NotColumn
		private String pic;

    public MallIndexCategoryJoin(){
    	this.px = 20;
    	this.createTime = new Date();
    }


	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPic() {
		return pic;
	}

	public void setPic(String pic) {
		this.pic = pic;
	}

	/**
	 * 设置：
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 获取：
	 */
	public Long getId() {
		return id;
	}
	/**
	 * 设置：首页分类ID
	 */
	public void setIndexCategoryId(Long indexCategoryId) {
		this.indexCategoryId = indexCategoryId;
	}
	/**
	 * 获取：首页分类ID
	 */
	public Long getIndexCategoryId() {
		return indexCategoryId;
	}
	/**
	 * 设置：类型
	 */
	public void setType(Integer type) {
		this.type = type;
	}
	/**
	 * 获取：类型
	 */
	public Integer getType() {
		return type;
	}
	/**
	 * 设置：关联ID
	 */
	public void setRefId(Long refId) {
		this.refId = refId;
	}
	/**
	 * 获取：关联ID
	 */
	public Long getRefId() {
		return refId;
	}
	/**
	 * 设置：创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	/**
	 * 获取：创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}
	/**
	 * 设置：排序
	 */
	public void setPx(Integer px) {
		this.px = px;
	}
	/**
	 * 获取：排序
	 */
	public Integer getPx() {
		return px;
	}


	@Override
	@JsonIgnore
	public List<HashMap<String, Object>> getFields() {
		// TODO Auto-generated method stub
		return FansheUtils.getFieldList(this);
	}


}
